import Vue from 'vue';
import Vuex from 'vuex';
import {state} from './state'
import {getters} from './getters'
import {mutations} from './mutations'
import {actions} from './actions'
import store2 from './store2'

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {store2},
  state,
  getters,  // 调用的方法,供组件中调用
  mutations,
  actions,
})
// 将模块导出
export default store;





